package com.ss.android.article.share.entity;

import com.ss.android.article.browser.R;
import com.ss.android.article.share.e.a;

public enum ShareAction implements a {
    wxtimeline(com.ss.android.article.browser.R.string.action_weixin_timeline, R.drawable.icon_moment, 1),
    wx(com.ss.android.article.browser.R.string.action_weixin_share, R.drawable.icon_wechat, 2),
    qq(com.ss.android.article.browser.R.string.cb, R.drawable.icon_qq, 3),
    qzone(com.ss.android.article.browser.R.string.cc, R.drawable.icon_qzone, 4),
    link(com.ss.android.article.browser.R.string.ch, R.drawable.fu, 10),
    text(com.ss.android.article.browser.R.string.c1, R.drawable.g5, 11),
    copy_link(com.ss.android.article.browser.R.string.bj, R.drawable.fu, 17);

    public int iconId;
    public int itemId;
    public int textId;

    private ShareAction(int i, int i2, int i3) {
        this.textId = i;
        this.iconId = i2;
        this.itemId = i3;
    }

    public static boolean containes(ShareAction shareAction) {
        ShareAction[] values = values();
        if (values == null) {
            return false;
        }
        for (ShareAction shareAction2 : values) {
            if (shareAction2 == shareAction) {
                return true;
            }
        }
        return false;
    }

    public static boolean hasAction(int i) {
        for (a itemId : values()) {
            if (itemId.getItemId() == i) {
                return true;
            }
        }
        return false;
    }

    public static ShareAction indexOf(int i) {
        ShareAction[] values = values();
        return (values == null || i < 0 || i >= values.length) ? null : values[i];
    }

    public final String getExtra() {
        return null;
    }

    public final int getIconId() {
        return this.iconId;
    }

    public final String getIconUrl() {
        return "";
    }

    public final int getItemId() {
        return this.itemId;
    }

    public final boolean getStatus() {
        return false;
    }

    public final int getTextId() {
        return this.textId;
    }
}